// JavaScript Document

var flashvars = {};
var params = {menu:'false',allowScriptAccess:'always',quality:'high',wmode:'transparent'};
var attributes = {};

swfobject.embedSWF("swf/city.swf", "city", "682", "269", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
swfobject.embedSWF("swf/music.swf", "music", "180", "57", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
swfobject.embedSWF("swf/gate.swf", "gate", "1000", "273", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
swfobject.embedSWF("swf/home_game.swf", "game", "484", "219", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
swfobject.embedSWF("swf/home_edu.swf", "edu", "241", "219", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
swfobject.embedSWF("swf/home_talking.swf", "talking", "211", "80", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
swfobject.embedSWF("swf/home_sponsors.swf", "sponsors", "1000", "60", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
swfobject.embedSWF("swf/home_media.swf", "mediapartners", "1000", "60", "9.0.0", "expressInstall.swf", flashvars, params, attributes);

$(function() {	 
	$('.video img,.download img,.vote img,.more img').hover(function(){$(this).fadeTo(500,0);},function(){$(this).fadeTo(400,1);});
	$('#today').slides({
		generateNextPrev: true,
		play: 4500
	});
	$('.media .video a').click(function(){
		$.colorbox({
			href:"video.html", 
			width:692,
			height:394
		});
	});
	$('#menu .vote a').click(function(){
		$.colorbox({
			href:"vote.html", 
			width:610,
			height:655
		});
		return false;
	});
});